package com.ls.pattern.state.v1.model;


import com.ls.pattern.state.v1.OrderStateEnum;
import com.ls.pattern.state.v1.OrderStateMachine;

public class WaitDeliverState implements OrderState {

    @Override
    public OrderStateEnum orderStateType() {
        return OrderStateEnum.WAIT_DELIVER;
    }

    @Override
    public void deliver(OrderStateMachine stateMachine) {
        stateMachine.setCurrentState(new WaitReceiveState());
    }
}
